Kristian Rietveld [Sun, 5 Dec 2010 13:42:08 +0000 (14:42 +0100)]
Turn TREE_VIEW_HEADER_HEIGHT into an inline function
Tristan Van Berkom [Sun, 5 Dec 2010 06:20:19 +0000 (15:20 +0900)]
Added g_getenv("RTL") to test rtl layouting.
Tristan Van Berkom [Sat, 4 Dec 2010 07:24:31 +0000 (16:24 +0900)]
Fixed conflicts from rebasing GtkTreeViewColumn changes from treeview-refactor.
Tristan Van Berkom [Sat, 4 Dec 2010 05:27:18 +0000 (14:27 +0900)]
Adding testverticalcells.c.
This test displays a GtkTreeViewColumn rendering a vertically
oriented GtkCellArea along side a horizontally oriented column
in the same treeview.
Tristan Van Berkom [Sat, 4 Dec 2010 05:05:15 +0000 (14:05 +0900)]
Removing hack and fixing gtk_tree_view_column_cell_get_size().
Now consult gtk_cell_area_context_get_preferred_height().
It can be that height-for-widths requested here were too large
when multiple cells are in play because of the alignments stored
in the context... removing the temporary focus-line-width hack.
Tristan Van Berkom [Wed, 1 Dec 2010 14:26:25 +0000 (23:26 +0900)]
Added GtkTreeViewColumn:cell-area construct-only property.
Allow feeding treeviewcolumn a custom cell-area (or not a custom one,
but allow sharing the cell-area with say, the combo-box area).
This patch also:
- Fixes signal connections to the area (now they do eventually get
disconnected at dispose time, they are handled regardless if a
treeview is set but execute safely, at least there is only one
connection/disconnection).
- Fixes refcounting on the cell_area (GtkCellArea is GInitiallyUnowned).
- Adds a constructor() in order to build the cell-area if one has
not been provided by the caller before hand at g_object_new()
construct time.
Tristan Van Berkom [Wed, 1 Dec 2010 08:12:32 +0000 (17:12 +0900)]
Fixed GtkTreeViewColumn allocation to only subtract the depth padding/indentation from the expander column.
Tristan Van Berkom [Wed, 1 Dec 2010 07:20:22 +0000 (16:20 +0900)]
Changed GtkTreeView to bookkeep the deepest expanded depth instead of recalculating it at column allocation time.
Tristan Van Berkom [Wed, 1 Dec 2010 05:57:44 +0000 (14:57 +0900)]
Allocate proper inner cell area to the GtkTreeViewColumn.
This is a premature patch, it traverses the tree's expanded
rows and fetches the deepest depth every time we allocate a
column. The deepest depth should rather be cached and pushed
when a row expands, then recalculated when the deepest expanded
row collapses.
Tristan Van Berkom [Wed, 1 Dec 2010 03:41:42 +0000 (12:41 +0900)]
Created _gtk_tree_view_column_request_width().
Removed gtk_tree_view_get_real_requested_width_from_column() from
gtktreeview.c in favor of this function in the treeviewcolumn domain
(since this function goes and checks treeviewcolumn internals, settings
and derives the real requested width, seems logical this should be done
by the treeviewcolumn instead).
Tristan Van Berkom [Wed, 1 Dec 2010 03:26:45 +0000 (12:26 +0900)]
Use gtk_tree_view_get_real_requested_width_from_column() all around
GtkTreeView duplicated the contents of this function word-for-word
inside gtk_tree_view_update_size().
Tristan Van Berkom [Wed, 1 Dec 2010 03:23:02 +0000 (12:23 +0900)]
Changed _gtk_tree_view_column_set_width for _gtk_tree_view_column_allocate
Now the GtkTreeViewColumn takes care of move/resizing its window and
allocating its button (except for the special case of current drag_column
where the column doesnt actually get reallocated).
Tristan Van Berkom [Tue, 30 Nov 2010 07:36:07 +0000 (16:36 +0900)]
Removed GtkTreeViewPrivate from gtktreeprivate.h and added a few more accessors.
This actually much simplifies interaction with GtkTreeSelection
(at least reduces code size where dealing width the treeview anchor path).
Tristan Van Berkom [Tue, 30 Nov 2010 06:28:14 +0000 (15:28 +0900)]
Removed the private sharing of internal treeview macros from gtktreeprivate.h
Added them directly to gtktreeview.c.
Tristan Van Berkom [Tue, 30 Nov 2010 05:29:45 +0000 (14:29 +0900)]
Removed all variables from GtkTreeViewColumn and created GtkTreeViewColumnPrivate
Some details:
- button_request was not needed, consult the minimum request of the button
- gtk_tree_view_column_get_button() needed to be public as people can set
tooltips on the button (and libgail accesses the button).
Tristan Van Berkom [Sun, 5 Dec 2010 06:20:46 +0000 (15:20 +0900)]
Added proper handling of right to left layouting of cells to GtkCellAreaBox.
Tristan Van Berkom [Sun, 5 Dec 2010 03:44:43 +0000 (12:44 +0900)]
Added different icon at the end of testtreeedit to see if RTL is actually working.
Tristan Van Berkom [Sun, 5 Dec 2010 04:14:39 +0000 (13:14 +0900)]
Merge branch 'master' into treeview-refactor
Javier Jardón [Sat, 27 Nov 2010 03:38:17 +0000 (04:38 +0100)]
Add internal accessor for GtkEntry->is_cell_renderer
This fixes commit
fb3429e5072508570d78dcc7cccb6ef425586bb2
Matthias Clasen [Sat, 4 Dec 2010 22:25:40 +0000 (17:25 -0500)]
Fix a segfault in gdk_window_beep
Not a good idea to cast an instance to a class...
Matthias Clasen [Sat, 4 Dec 2010 21:32:02 +0000 (16:32 -0500)]
Try again to fix the gdk symbol list
Grr, gdk_window_class_class_get_type should have been
gdk_window_window_class_get_type.
Matthias Clasen [Sat, 4 Dec 2010 21:16:29 +0000 (16:16 -0500)]
Fix gdk_rgba_parse call
Carlos Garnacho [Sat, 4 Dec 2010 17:26:02 +0000 (18:26 +0100)]
Fix call to gtk_widget_override_cursor()
Carlos Garnacho [Sat, 4 Dec 2010 16:44:53 +0000 (17:44 +0100)]
Make gtk_widget_override_cursor() take GdkRGBAs
Even though the style properties have the GdkColor type, the other
gtk_widget_override_* API takes RGBA colors, so it is consistent
now.
Tristan Van Berkom [Sat, 4 Dec 2010 15:36:37 +0000 (00:36 +0900)]
Merge branch 'master' into treeview-refactor
Conflicts:
gtk/gtkmarshalers.list
tests/Makefile.am
Paolo Borelli [Sat, 4 Dec 2010 13:55:11 +0000 (14:55 +0100)]
Annotate gdk_window_get_geometry, get_position and get_origin
Carlos Garnacho [Sat, 4 Dec 2010 14:08:35 +0000 (15:08 +0100)]
GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color()
Carlos Garnacho [Sat, 4 Dec 2010 13:29:16 +0000 (14:29 +0100)]
testgtk: Fix gdk_rgba_parse() arguments.
Carlos Garnacho [Fri, 3 Dec 2010 20:56:39 +0000 (21:56 +0100)]
GtkCssProvider: Improve error handling and reporting.
Nicer error reports are provided, and a GError can be spread from
anywhere in parsing, so over time more precise and meaningful
messages can be produced.
Carlos Garnacho [Fri, 3 Dec 2010 11:25:12 +0000 (12:25 +0100)]
GtkThemingEngine: Be a bit more robust against missing essential properties.
Carlos Garcia Campos [Fri, 3 Dec 2010 20:14:48 +0000 (21:14 +0100)]
GtkWidget: add gtk_widget_render_icon_pixbuf()
and deprecate gtk_widget_render_icon()
Carlos Garcia Campos [Fri, 3 Dec 2010 19:39:58 +0000 (20:39 +0100)]
GtkIconFactory: add gtk_icon_set_render_icon_pixbuf()
and deprecate gtk_icon_set_render_icon().
Carlos Garcia Campos [Fri, 3 Dec 2010 19:31:13 +0000 (20:31 +0100)]
GtkStyle: set style context state before calling gtk_render_icon_pixbuf()
Carlos Garcia Campos [Fri, 3 Dec 2010 19:30:13 +0000 (20:30 +0100)]
GtkStyle: make context property readable
Carlos Garcia Campos [Fri, 3 Dec 2010 13:10:32 +0000 (14:10 +0100)]
GtkWidget: queue a resize when style context changed
Carlos Garcia Campos [Fri, 3 Dec 2010 13:09:35 +0000 (14:09 +0100)]
GtkStyleContext: invalidate icon caches when resetting widgets
Carlos Garcia Campos [Fri, 3 Dec 2010 13:08:33 +0000 (14:08 +0100)]
Use gtk_style_context_reset_widgets() instead of gtk_rc_reset_styles()
Carlos Garcia Campos [Fri, 3 Dec 2010 13:00:16 +0000 (14:00 +0100)]
GtkSettings: add _gtk_settings_get_screen() private method
Carlos Garnacho [Thu, 2 Dec 2010 22:45:14 +0000 (23:45 +0100)]
Block direct #including in style headers
Carlos Garnacho [Thu, 2 Dec 2010 22:41:24 +0000 (23:41 +0100)]
Add helper API for getting colors/borders in GtkStyleContext/GtkThemingEngine
Carlos Garnacho [Thu, 2 Dec 2010 22:37:15 +0000 (23:37 +0100)]
GtkStyleProperties: Refactor color/gradient resolution
Carlos Garnacho [Thu, 2 Dec 2010 21:03:57 +0000 (22:03 +0100)]
GtkWidget: Add gtk_widget_override_cursor().
This function replaces gtk_widget_modify_cursor().
Carlos Garnacho [Thu, 2 Dec 2010 19:28:09 +0000 (20:28 +0100)]
Add GtkModifierStyle as a private object
This object backs up gtk_widget_override_* operations. This object
is not meant to be public because any intention to modify widgets'
style in a themeable way should involve using regions/classes, so
they're modifiable through CSS. As such, the API is really
short-scoped.
Carlos Garnacho [Wed, 1 Dec 2010 19:25:52 +0000 (20:25 +0100)]
Gtk9Slice: Fix stretch rendering.
"Nearest" filter used when scaling the image, so image borders
aren't blurred.
Carlos Garnacho [Wed, 1 Dec 2010 18:19:26 +0000 (19:19 +0100)]
GtkThemingEngine: Add gtk_theming_engine_lookup_color()
It could also be handy for theme engines...
Carlos Garnacho [Wed, 1 Dec 2010 01:55:31 +0000 (02:55 +0100)]
Parse user CSS from $XDG_CONFIG_HOME/gtk-3.0/gtk.css
Carlos Garnacho [Wed, 1 Dec 2010 00:26:03 +0000 (01:26 +0100)]
GtkThemingEngine: Remove unused variables
Carlos Garnacho [Wed, 1 Dec 2010 00:19:24 +0000 (01:19 +0100)]
Fix compiler warnings.
Carlos Garnacho [Tue, 30 Nov 2010 23:55:14 +0000 (00:55 +0100)]
GtkStyleProperties: Turn border-width into a GtkBorder property.
All current users of this CSS property have been updated to deal
with a GtkBorder.
Also a 0 border width has been set in the default CSS to ensure
GtkStyleContext and GtkThemingEngine always provide a non-NULL
pointer for this property.
Carlos Garnacho [Tue, 30 Nov 2010 03:00:26 +0000 (04:00 +0100)]
Fix docs typo.
Carlos Garnacho [Tue, 30 Nov 2010 02:59:39 +0000 (03:59 +0100)]
GtkCssProvider: Fix up state matching when looking up style properties.
Carlos Garnacho [Tue, 30 Nov 2010 01:14:00 +0000 (02:14 +0100)]
GtkStyleProvider: Add GtkStateFlags parameter to get_style_property().
Widget style properties can now have different values depending on the
current state.
Carlos Garnacho [Tue, 30 Nov 2010 01:13:10 +0000 (02:13 +0100)]
GtkStyleContext: Handle directionality when picking next provider.
Carlos Garnacho [Mon, 29 Nov 2010 10:27:43 +0000 (11:27 +0100)]
GtkWidget: unset NULL properties when overriding style.
Carlos Garnacho [Mon, 29 Nov 2010 10:25:09 +0000 (11:25 +0100)]
GtkThemingEngine: Render gradients in tabs.
Background will be actually rotated in tabs, so the "bottom" side coincides
with the junction point, this makes gradients work as expected in rotated tabs.
Carlos Garnacho [Mon, 29 Nov 2010 10:24:04 +0000 (11:24 +0100)]
GtkThemingEngine: split background rendering to a private function.
Carlos Garnacho [Fri, 26 Nov 2010 00:27:19 +0000 (01:27 +0100)]
GtkStyle: Commit a few typos when translating states.
Carlos Garcia Campos [Fri, 26 Nov 2010 08:07:41 +0000 (09:07 +0100)]
docs: gtk_style_context_get_screen() always returns a valid screen
Carlos Garcia Campos [Fri, 26 Nov 2010 08:01:17 +0000 (09:01 +0100)]
Check screen really changed before notifying it and invalidating the context
Carlos Garcia Campos [Fri, 26 Nov 2010 07:59:10 +0000 (08:59 +0100)]
Initialize screen of GtkStyleContext to default screen
Matthias Clasen [Fri, 26 Nov 2010 07:35:38 +0000 (02:35 -0500)]
Add explanation to failing test
Matthias Clasen [Fri, 26 Nov 2010 07:29:56 +0000 (02:29 -0500)]
Add a testcase a problem with style property handling
Matthias Clasen [Fri, 26 Nov 2010 05:43:16 +0000 (00:43 -0500)]
Allow images for background-image
In addition to -gtk-gradient(...), allow url(path), and create
a pattern from the image. Still to do: allow stretch/repeat options.
Matthias Clasen [Fri, 26 Nov 2010 04:49:07 +0000 (23:49 -0500)]
Add list of classes and regions to the docs
Matthias Clasen [Fri, 26 Nov 2010 04:46:15 +0000 (23:46 -0500)]
Avoid compiler warnings
Matthias Clasen [Fri, 26 Nov 2010 02:47:46 +0000 (21:47 -0500)]
Don't add class "scrollbar" for every trough
Turns out "trough" as a detail string is used in a variety
of widgets, not all of which are scrollbars.
Matthias Clasen [Fri, 26 Nov 2010 01:48:52 +0000 (20:48 -0500)]
Trivial doc fixes
Matthias Clasen [Fri, 26 Nov 2010 01:39:53 +0000 (20:39 -0500)]
Some header cleanups
Move GtkGradient to their own files, also move GtkBorder out of
gtkstyle.h, so that header can be all deprecated.
Matthias Clasen [Thu, 25 Nov 2010 19:38:02 +0000 (14:38 -0500)]
Add deprecation notes
Matthias Clasen [Thu, 25 Nov 2010 19:26:39 +0000 (14:26 -0500)]
Initial attempt at deprecating GtkStyle api
This will probably need some finetuning.
Matthias Clasen [Thu, 25 Nov 2010 17:50:17 +0000 (12:50 -0500)]
Forgotten files
Matthias Clasen [Thu, 25 Nov 2010 17:49:16 +0000 (12:49 -0500)]
Make tests compile without using GtkStyle api
Matthias Clasen [Thu, 25 Nov 2010 03:40:19 +0000 (22:40 -0500)]
Port gtk3-demo to GtkStyleContext
Matthias Clasen [Thu, 25 Nov 2010 02:28:42 +0000 (21:28 -0500)]
Fix memory handling when dealing with colors
Matthias Clasen [Thu, 25 Nov 2010 02:09:23 +0000 (21:09 -0500)]
Improve the migration guide
Add some hints about dealing with colors.
Matthias Clasen [Thu, 25 Nov 2010 00:57:10 +0000 (19:57 -0500)]
Deprecate gtk_icon_info_load_symbolic_for_style
We might end removing it altogether since it is a bit silly to have
Since: 3.0
Deprecated: 3.0
Carlos Garnacho [Wed, 24 Nov 2010 22:25:14 +0000 (23:25 +0100)]
GtkSpinner: Use style context for rendering.
Animation is now handled by the theming layer, a looping animation
has been defined in the default CSS to handle active spinners.
Carlos Garnacho [Wed, 24 Nov 2010 22:21:28 +0000 (23:21 +0100)]
GtkStyleContext: handle prelight transitions
Carlos Garnacho [Wed, 24 Nov 2010 22:21:03 +0000 (23:21 +0100)]
GtkThemingEngine: Handle prelight transitions in render_layout()
Carlos Garnacho [Wed, 24 Nov 2010 22:20:15 +0000 (23:20 +0100)]
GtkThemingEngine: Also render topright and bottomleft corners if junction sides say so
Carlos Garnacho [Wed, 24 Nov 2010 22:17:46 +0000 (23:17 +0100)]
Initialize all looping, active state transitions on map()
This allows widgets to gtk_widget_set_state_flags() before mapping
and have animations started anyway when this happens.
Carlos Garnacho [Wed, 24 Nov 2010 22:00:47 +0000 (23:00 +0100)]
Add #define for the "spinner" style class
Carlos Garnacho [Wed, 24 Nov 2010 21:57:18 +0000 (22:57 +0100)]
GtkStyleContext: store layout extents for animation purposes.
Carlos Garnacho [Wed, 24 Nov 2010 21:56:53 +0000 (22:56 +0100)]
GtkStyleContext: Only allow looping transitions for states being turned on.
Carlos Garnacho [Wed, 24 Nov 2010 21:53:36 +0000 (22:53 +0100)]
GtkStyleContext: Stop animations if the window is gone.
Carlos Garnacho [Wed, 24 Nov 2010 15:23:37 +0000 (16:23 +0100)]
GtkThemingEngine: render square corner if the gap is too close on render_frame_gap()
Matthias Clasen [Wed, 24 Nov 2010 20:37:36 +0000 (15:37 -0500)]
Use gtk_icon_info_load_symbolic_for_context
gtk_icon_info_load_symbolic_for_style is going to be deprecated.
Matthias Clasen [Wed, 24 Nov 2010 19:40:31 +0000 (14:40 -0500)]
Add a GtkStyleContext-variant of symbolic icon loading
Matthias Clasen [Wed, 24 Nov 2010 06:01:31 +0000 (01:01 -0500)]
Some tweaks for the GtkStyleContext migration guide
Matthias Clasen [Wed, 24 Nov 2010 04:16:22 +0000 (23:16 -0500)]
Add illustration to gtk_render_handle docs
Matthias Clasen [Wed, 24 Nov 2010 04:02:30 +0000 (23:02 -0500)]
Small doc addition
Matthias Clasen [Wed, 24 Nov 2010 03:55:52 +0000 (22:55 -0500)]
Add a frame-gap illustration
Matthias Clasen [Wed, 24 Nov 2010 03:51:40 +0000 (22:51 -0500)]
Improve frame-gap drawing
Instead of overdrawing the gap with bg-color, clip it away.
Matthias Clasen [Wed, 24 Nov 2010 01:50:45 +0000 (20:50 -0500)]
Fix another parameter mismatch
Matthias Clasen [Wed, 24 Nov 2010 01:49:18 +0000 (20:49 -0500)]
Fix up symbol list for docs
Matthias Clasen [Wed, 24 Nov 2010 01:46:20 +0000 (20:46 -0500)]
fix parameter name mismatch
Matthias Clasen [Tue, 23 Nov 2010 23:01:21 +0000 (18:01 -0500)]
Forgotten file
Carlos Garnacho [Wed, 24 Nov 2010 02:04:20 +0000 (03:04 +0100)]
GtkButton: Remove unneeded gtk_style_context_notify_state_change() calls
There is now code to handle this for one-item widgets (such as GtkButton)
in gtk_widget_set_state_flags()
Carlos Garnacho [Wed, 24 Nov 2010 02:02:49 +0000 (03:02 +0100)]
GtkCheckButton: Look active when the pointer button is pressed and hovering
Carlos Garnacho [Wed, 24 Nov 2010 02:02:01 +0000 (03:02 +0100)]
GtkStyleContext: Handle empty areas when coalescing invalidation regions.